/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.dao.impl;

import com.qdu.dao.AdminDao;
import com.qdu.dao.UserDao;
import com.qdu.entity.Admin;
import com.qdu.entity.User;

/**
 *
 * @author Sanshi
 */
public class AdminDaoImpl  extends BaseDaoImpl<Admin> implements AdminDao{

  @Override
    public Admin getAdminByUserNameAndPassWord(Admin admin) {
          String sql = "select * from [dbo].[Admin] where Aname =? and Apwd = ? ";
        Admin bean = this.getBean(sql, admin.getAneme(), admin.getApwd());
        return bean;
    }
    
}
